package com.cg.system.mapper;
import com.cg.system.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where username=#{username}")
    User findByUserName(String username);
    @Select("select * from user where id=#{id}")
    User findById(Integer userId);
}
